PeekUndoHistory
ThePeekUndoHistory
method returns a Boolean value that indicates whether there is anything on the undo stack and gets information about the action at the top of the undo stack.
ODBoolean PeekUndoHistory (out ODPart part, out ODActionData actionData, out ODActionType actionType, out ODName actionLabel);
part
- A reference to the part that performed the action at the top of the undo stack.
actionData
- A byte array whose buffer is to contain the action data for the action at the top of the undo stack.
actionType
- The possible type of undo action. The value of
actionType
must be one of the following:kODSingleAction
,kODBeginAction
, orkODEndAction
.actionLabel
- A user-visible label for the undo command beginning with the word Undo.
- return value
kODTrue
if there is anything on the undo stack, otherwisekODFalse
.DISCUSSION
The valuekODSingleAction
for theactionType
parameter indicates that the action was a single action. The valuekODBeginAction
indicates that the action was the first action of a multistep action. The valuekODEndAction
indicates that the action was the last action of a multistep action.The document shell or container applications call this method to properly set up the Undo item. Your part can also call this method, but it is probably unnecessary.
If the top of the undo stack contains a mark indicating an action subhistory, this method returns
kODFalse
.SEE ALSO
TheODActionData
type (page 898).
TheODActionType
type (page 898).
TheODName
type (page 876).
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help